package com.guoxin.thread.extthread2.t2;

public class ThreadB extends Thread {

    private MyObject myObject;

    public ThreadB(MyObject myObject){
        this.myObject = myObject;
    }

    @Override
    public void run() {
        myObject.methodA();
    }
}
